<%@ page language="java" import="java.util.*" contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@include file="/common/taglibs.jsp" %>
<footer class="bottom">
        <div class="weui_tab">
            <div class="weui_tab_bd">
            </div>
            <div class="weui_tabbar pro-detail-tab" style="padding-top:0;">
             <c:if test="${user != '' && user != null}">
             	<c:if test="${user.role_id==1 }">
             		<a href="/project/detail/${pro.id }" class="weui_tabbar_item" id="nav-detail">
	                    <i class="iconfont icon-projectdetails"></i>
	                    项目详情
	                </a>
	                <a href="/project/proBp/${pro.id }" class="weui_tabbar_item" id="nav-bp">
	                    <i class="iconfont icon-business-plan" ></i>
	                    商业计划书
	                </a>
	                <a href="/project/proAdvice/${pro.id }" class="weui_tabbar_item" id="nav-talk">
	                    <i class="iconfont icon-call-advisory"></i>
	                    融资顾问
	                </a>
             	</c:if>
             	<c:if test="${user.role_id==2 }">
	           		<c:if test="${investor.flag == 2 }">
		                <a href="/project/detail/${pro.id }" class="weui_tabbar_item" id="nav-detail">详情</a>
		                <a href="javascript:;" class="weui_tabbar_item" onclick="lookPro(${pro.id},${pro.status },1,${user.id });" id="nav-bp"> 商业计划书</a>
		                <a href="javascript:;" class="weui_tabbar_item" onclick="lookPro(${pro.id},${pro.status },2,${user.id },${investor.id });"  id="nav-talk">咨询</a>
		                <a class="weui_tabbar_item" id="collect" >
			                <c:if test="${!empty proCollect }">
			                	<label id="isPicked" onclick="cancelCollectPro(${user.id},${pro.id },${pro.user_id },${user.role_id },${investor.flag })">已关注</label>
			                </c:if>
			                <c:if test="${empty proCollect }">
			                	<label id="saveProCollect" onclick="collectPro(${user.id},${pro.id },${pro.user_id },${user.role_id },${investor.flag })">关注</label>
			                </c:if>
		                </a>
	                </c:if>
		            <c:if test="${investor.flag != 2 }">
		            	<a href="/project/detail/${pro.id }" class="weui_tabbar_item" id="nav-detail">详情</a>
		                <a href="javascript:void(0);" class="weui_tabbar_item" onclick="auth(2,${investor.flag},${user.id });" id="nav-bp">商业计划书</a>
		                <a href="javascript:void(0);" class="weui_tabbar_item" onclick="auth(3,${investor.flag},${user.id });" id="nav-talk"> 项目咨询</a>
		               	<a id="collect" class="weui_tabbar_item">
		               	<c:if test="${!empty proCollect }">
	                		<label id="isPicked" onclick="cancelCollectPro(${user.id},${pro.id },${pro.user_id },${user.role_id },${investor.flag })">已关注</label>
	                	</c:if>
	                 	<c:if test="${empty proCollect }">
	                 		<label onclick="collectPro(${user.id},${pro.id },${pro.user_id },${user.role_id },${investor.flag })">关注</label>
	                	</c:if>
	                	</a>
		            </c:if>
            	</c:if>
            </c:if>
              <c:if test="${user == '' || user == null}">
              		<a href="/project/detail/${pro.id }" class="weui_tabbar_item" id="nav-detail">详情</a>
	                <a href="javascript:void(0);" class="weui_tabbar_item" onclick="authLogin();" id="nav-bp">商业计划书</a>
	                <a href="javascript:void(0);" class="weui_tabbar_item" onclick="authLogin();" id="nav-talk">咨询</a>
	                <a href="javascript:void(0);" class="weui_tabbar_item" onclick="authLogin();">关注</a>
              </c:if>
            </div>
        </div>
    </footer>
    <script>
    document.querySelector('#<%=request.getParameter("pageHeader")%>').classList.add("pro-on");
    </script>
